﻿(function () {
    var CatModel = WinJS.Class.define(function (name, birthdate, spiece, gender, barcode, color, vetsname, vetclinic, vetnumber, vetaddress, vaccineplan) {
        this.name = name;
        this.birthdate = birthdate;
        this.spiece = spiece;
        this.gender = gender;
        this.barcode = barcode;
        this.color = color;
        this.vet = {};
        this.vet.name = vetsname;
        this.vet.clinic = vetclinic;
        this.vet.number = vetnumber;
        this.vet.address = vetaddress;
        this.vaccineplan = vaccineplan;
    }, {
        name: "",
        birthdate: "",
        spiece: "",
        gender: "",
        barcode: 0,
        color: "",
        vet: {
            name: "",
            clinic: "",
            number: "",
            address: ""
        },
        vaccineplan: ""
    })

    var VetModel = WinJS.Class.define(function (clinicName, address, vetName, phone) {
        this.clinic = clinicName;
        this.address = address;
        this.name = vetName;
        this.phone = phone;
    }, {
        clinic: "",
        address: "",
        name: "",
        phone: ""
    })

    WinJS.Namespace.define("Models", {
        CatModel: CatModel,
        VetModel: VetModel
    })
})()